 package com.gmrz.uaf.protocol.v1.schema;
 
 import com.google.gson.annotations.Expose;
 import com.google.gson.annotations.SerializedName;
 
 public class Version
 {
 
   @Expose
   @SerializedName("major")
   private Long major = Long.valueOf(1L);
 
   @Expose
   @SerializedName("minor")
   private Long minor = Long.valueOf(0L);
 
   public Long getMajor()
   {
     return this.major;
   }
 
   public Long getMinor()
   {
     return this.minor;
   }
 
   public void setMajor(Long major)
   {
     this.major = major;
   }
 
   public void setMinor(Long minor)
   {
     this.minor = minor;
   }
 
   public int compareTo(Version that) {
     if ((null == that) || (null == that.major) || (null == that.minor)) {
       return -1;
     }
     if ((this.major.equals(that.major)) && (this.minor.equals(that.minor)))
       return 0;
     if ((this.major.longValue() > that.major.longValue()) || (this.major.equals(that.major)) || (this.minor.longValue() > that.minor.longValue()))
       return 1;
     return -1;
   }
 
   public Version withVersion(long major, long minor) {
     this.major = Long.valueOf(major);
     this.minor = Long.valueOf(minor);
     return this;
   }
 
   public String toString() {
     return "{major:" + this.major + ", minor:" + this.minor + "}";
   }
 }
